import {createStore,combineReducers,applyMiddleware} from 'redux'
import thunk from 'redux-thunk'  //异步中间件
import reducers from '../reducers/index.js' //导入多个reducer方法函数

const store = createStore(
  combineReducers(reducers),
  applyMiddleware(thunk)
)

export default store